{template "content","header"}
<!--网站容器-->
<div class="container"> 
		 <div class="content-box main-left news-list">
		 		<div class="title">
		 			<h2>{$CATEGORYS[$catid]['catname']}</h2>
		 		</div>
				{pc:content  action="lists" catid="$catid" order="id DESC" page="$page" num="10"}
				{loop $data $r}
		 		<div class="news">
		 			<a href="{$r['url']}" class="news-img">
		 				<img src="{thumb($r['thumb'],230,150)}" alt="{$r['title']}" title="{$r['title']}" />
		 			</a>
		 			<div class="news-right">
		 				{if $n<4}<em>顶</em>{/if}
		 				<a href="{$r['url']}"><span class="title_color"{title_style($r['style'])}>{$r['title']}</span></a>
		 				<p>{str_cut($r['description'],80)}...</p>
		 				<div class="news-tags">
						{pc:content action="centent_tag" modelid="$modelid" siteid="$siteid" id="$r['id']" num="5"}
			 	    	{loop $data $r}
			 	    	    <a href="{tag_url($r['keyword'],$r['siteid'])}">{$r['keyword']}</a>
			 	    	{/loop}
			 	    	{/pc}
						</div>
		 			</div>
		 		</div>
				{/loop}
				<div id="page">{$pages}</div>
				{/pc}
		  </div>
		  
		 <div class="main-right">	
		 	<div class="content-box">
				<div class="title">
		 			<h2>频道总排行</h2>
		 		</div>
		 	    <ul class="ranking">
				{pc:content action="hits" catid="$catid" num="10" order="views DESC"}
				{loop $data $r}
		 			<li><em>{$n}</em><span class="date">{date('m-d',$r['inputtime'])}</span><a href="{$r['url']}" title="{$r['title']}"><span class="title_color"{title_style($r['style'])}>{str_cut($r['title'], 60, '')}</span></a></li>
				{/loop}
				{/pc}
		 		</ul>		 		
		 	</div>
 		 	<div class="line"></div>
 	 	 	<div class="content-box">
 	 			<div class="title">
 	 	 			<h2>频道本月排行</h2>
 	 	 		</div>
 				<ul class="comment-list">		
				{pc:content action="hits" catid="$catid" num="10" order="monthviews DESC"}
				{loop $data $r}
 					<li><a href="{$r['url']}" title="{$r['title']}">{str_cut($r['title'], 60, '')}</a></li>
				{/loop}
				{/pc}
 				</ul>		 		
 	 	 	</div>
		 	<div class="line"></div>
	 	 	<div class="content-box">
	 			<div class="title">
	 	 			<h2>热门标签</h2>
	 	 		</div>
			    <ul class="tag-list">
				{pc:content action="tag" field="id,siteid,keyword,videonum,searchnums" num="30"}
				{loop $data $r}
					<li><a href="{tag_url($r['keyword'],$r['siteid'])}">{$r['keyword']}({$r['videonum']})</a></li>	
				{/loop}
				{/pc}
				</ul>
	 	 	</div>
		 </div>
</div>
{template "content","footer"}